package com.gserver.commons.jmx;

import org.springframework.jmx.export.annotation.ManagedOperation;
import org.springframework.jmx.export.annotation.ManagedOperationParameter;
import org.springframework.jmx.export.annotation.ManagedOperationParameters;
import org.springframework.jmx.export.annotation.ManagedResource;

/**
 * Gm控制台 暂时通过mx4j作为入口</p> 以后可以通过此接口接收web平台的接口，通过http调用
 * 
 * @author
 * 
 */
@ManagedResource(objectName = "bean:name=testBean", description = "My Managed Bean")
public class GMTool {

	static final String OFFLINE = "玩家不在线";
	static final String SUCCESS = "成功";
	static final String FAILED = "失败";
	static final String NONBLACK = "不在封号名单内";
	static final String NOTEXIST = "玩家不存在";

	@ManagedOperation(description = "发送给玩家消息")
	@ManagedOperationParameters({ @ManagedOperationParameter(name = "skyId", description = "The first number") })
	public boolean sendMessageToUser(long skyId) {

		return true;
	}
}
